package com.example.demo.ao;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Attendance {
//    @ExcelIgnore
//    private Long id;

    @ExcelProperty("姓名")
    private String userName;

    @ExcelProperty("工号")
    private String userId;

    @ExcelProperty("日期")
    private String originalDateStr;

    @ExcelIgnore
    private Date attendanceDate;

    // 时间处理（格式：09:58）
    @ExcelProperty("上班1打卡时间")
    private String clockInTimeStr;

    @ExcelIgnore
    private Date clockInTime;

    @ExcelProperty("下班1打卡时间")
    private String clockOutTimeStr;

    @ExcelIgnore
    private Date clockOutTime;

    @ExcelProperty("上班1打卡结果")
    private String clockInStatus;

    @ExcelProperty("下班1打卡结果")
    private String clockOutStatus;

    @ExcelIgnore
    private String status;

    @ExcelProperty("出勤天数")
    private Integer attendanceDay;

    @ExcelProperty("工作时长")
    private Double workHours;

    @ExcelProperty("迟到时长")
    private int delayDuration;

    @ExcelProperty("迟到天数")
    private int delayDays;

    @ExcelProperty("早退时长")
    private int earlyDration;

    @ExcelProperty("早退天数")
    private int earlyDrationDay;

    @ExcelProperty("旷工天数")
    private int absenteeismDay;

    @ExcelProperty("出差时长")
    private int travelDay;

    @ExcelProperty("外出时长")
    private int outDay;

    @ExcelIgnore
    private Date createTime;

    @ExcelIgnore
    private Date updateTime;
}